import { ISysPurchaseRequestBill } from '/@/views/supplychain/syspurchaserequestbill/api/interface';
import { ISysMaterial } from '/@/views/supplychain/sysmaterial/api/interface';
import { ISysMaterialSku } from '/@/views/supplychain/sysmaterialsku/api/interface';

export interface ISysPurchaseRequestBillEntry {
	ID?: string | null;
	BillId: null;
	Bill?: ISysPurchaseRequestBill | null;
	MaterialId: null;
	Material?: ISysMaterial | null;
	MaterialSkuId: null;
	MaterialSku?: ISysMaterialSku | null;
	IsBackupMaterial: boolean;
	RequestQuantity: string | null | number;
	UnitPrice: string | null | number;
	TotalAmount: string | null | number;
	BudgetAmount: string | null | number;
	TechnicalRequirement: string | null;
	RequiredArrivalDate: Date | null;
	PurchaseProgress?: '采购审批中' | '采购需求池' | '采购中' | '运输中' | '已完成' | '已取消' | null;
	Files: string | null;
}

export interface ISysPurchaseRequestBillEntryVm {
	Entity: ISysPurchaseRequestBillEntry;
	ActionName?: string | null;
	IsMyApprove?: boolean | null;
	SelectedFilesIds: string[]
	;
}

export interface ISysPurchaseRequestBillEntryView extends ISysPurchaseRequestBillEntry {

	FilesNames: string[];
}

export interface ISysPurchaseRequestBillEntryQuery {
	BillId?: string | null;
	BillCode?: string | null;
	MaterialId?: string | null;
	MaterialName?: string | null;
	MaterialCode?: string | null;
	MaterialSkuId?: string | null;
	MaterialSkuName?: string | null;
	MaterialSkuCode?: string | null;
	IsBackupMaterial?: boolean | null;
	RequiredArrivalDate?: Date | null;
	PurchaseProgress?: number | null;
}
